import  http from './request.js'
const {request, uploadFile} = http

//手机号登录
export function phoneLogin(data) {
  return request({
    url: 'phoneLogin',
    method: "GET",
    data: data.data
  })
}
//微信授权手机号
export function getPhoneNumber(data){
  return request({
    url:"mini/login",
    method:"GET",
    data:data.data
  })
}
//微信授权手机号
export function setPhoneNumber(data){
  return request({
    url:"mini/user/set-phone",
    method:"POST",
    data:data.data
  })
}

// 登录解析手机号
export function decrypts(data){
  return request({
    url:"mini/decrypt",
    method:"POST",
    data:data.data
  })
}